package com.cjs.example.stock.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjs.example.common.dto.CommodityDTO;
import com.cjs.example.common.response.ObjectResponse;
import com.cjs.example.stock.entity.Stock;

/**
 * 仓库服务
 */
public interface StockService extends IService<Stock> {

    /**
     * 扣减库存
     */
    ObjectResponse decreaseStock(CommodityDTO commodityDTO);
}
